<template>
	<view>
		<view>姓名：{{ user.name }}--年龄：{{ user.age }}</view>
		<view>----</view>
		<scroll-view scroll-x ref="scroll"></scroll-view>
	</view>
	
</template>

<script setup>
import { ref } from 'vue';
import { onLoad, onReady } from '@dcloudio/uni-app'
const user = ref({
	name:"张三",
	age:18
})

const scroll = ref(null)

onLoad((e)=>{
	user.value = {
		name:e.name,
		age:e.age
	}
})

onReady(()=>{
	console.log(scroll.value);
	console.log(scroll);
})


</script>

<style lang="scss" scoped>
	       
</style>
